package com.xiaozhen.tcp.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: zhenweisheng
 * @Date: 2020/8/3 8:58
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "zookeeper")
public class ZookeeperConfig {

    /**
     * 是否注册到ZK
     */
    private boolean registry;

    /**
     * 注册中心地址 以逗号隔开
     */
    private String addresses;
}
